<?php
/**
 * 足球阵型
 */
namespace app\sports\lineup\model;

use think\Db;
use think\Model;

class LineupModel extends Model
{

    private $database = 'sports_database';

    /*
     * 比赛阵容入库
     *
     */
    public function InsertLineup(array $array)
    {
        return Db::database($this->database)->table('foot_ball_lineup')->strict()->insert($array);
    }

    /*
     * 根据纳米id查询比赛阵容
     * @id 纳米id
     */
    public function QueryId($id){
        return Db::database($this->database)->table('foot_ball_lineup')->find($id);
    }

    /*
     * 根据纳米id更新比赛的阵容
     */
    public function UpdateLineup($id,$array){
         return Db::database($this->database)->table('foot_ball_lineup')->where('nami_match_id',$id)->update($array);
    }


}